import React from 'react'
import ReactDOM from 'react-dom/client'
import './index.css'
import App from './App'
import {BrowserRouter, HashRouter, Route, Routes} from 'react-router-dom'
import Login from './pages/Login'
import zhCN from 'antd/locale/zh_CN'
import {ConfigProvider} from 'antd'

const root = ReactDOM.createRoot(document.getElementById('root'))
root.render(
    <HashRouter>
        <ConfigProvider locale={zhCN}>
            <Routes>
                <Route path="/" element={<Login/>}/>
                <Route path="/login" element={<Login/>}/>
                <Route path="/admin/*" element={<App/>}/>
            </Routes>
        </ConfigProvider>
    </HashRouter>
)
